﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace BPM.Web.Shared.Data;

/// <summary>
/// 员工信息参数2
/// </summary>
public class EmpOutput2 : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 工号
    /// </summary>
    public string? JobNum { get; set; }

    /// <summary>
    /// 机构Id
    /// </summary>
    public string? OrgId { get; set; }

    /// <summary>
    /// 机构名称
    /// </summary>
    public string? OrgName { get; set; }

    /// <summary>
    /// 附属机构
    /// </summary>
    public List<EmpExtOrgPosOutput> ExtIds { get; set; } = new List<EmpExtOrgPosOutput>();

    /// <summary>
    /// 职位集合
    /// </summary>
    public List<long> PosIdList { get; set; } = new List<long>();
}
